package util

import (
	"math/rand"
	"time"
)

var randStr = []rune("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")

func GetRandStr(count int) string {
	if count < 1 {
		count = 1
	}
	randRune := make([]rune, count)
	len := len(randRune)
	for i := range count {
		rand.New(rand.NewSource(time.Now().UnixNano()))
		randRune[i] = randStr[rand.Intn(len-1)]
	}
	return string(randRune)
}
